package com.proprovider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.cusprovider.dao.UserDao;
import com.pojo.User;
import com.service.UserService;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Component
@Transactional
@Service(interfaceClass = UserService.class)
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao ;

 @Override
    public List<User> getUserList() {
        return userDao.getAllUsers();
    }



    @Override
    public User getUserByLoginCode(String loginCode) {
        return null;
    }

    @Override
    public List<User> getAllUsers() {
        return null;
    }

    @Override
    public User getUserById(int uid) {
        return null;
    }

    @Override
    public int addUser(User user, int[] roleIds) {
        return 0;
    }

    @Override
    public int userEdit(User user) {
        return 0;
    }

    @Override
    public User getId(int id) {
        return null;
    }

    @Override
    public boolean userDelete(int id) {
        return false;
    }
}
